import { createApp } from "vue";
import App from "./App.vue";
import HmButton from "./components/HmButton.vue";
import router from './router'

const application = createApp(App); // 应用对象
// 在挂载之前去注册全局组件
application.component("HmButton", HmButton);
// 所有的注册都得在挂载之前做
application.use(router) // 注册路由对象

application.mount("#app"); // 挂载到元素上
